/*
 * ComputedPort.java
 *
 * Created on September 1, 2006, 10:48 AM
 *
 * (C) 2006 R. Alexander Milowski
 */

package com.smallx.xproc;

import org.infoset.xml.Name;
import org.infoset.xml.NamespaceScope;
import org.infoset.xml.XMLException;

/**
 *
 * @author alex
 */
public class ComputedPort extends Reference {

   Reference ref;
   Expression expression;
   
   /** Creates a new instance of ComputedPort */
   public ComputedPort(Reference ref, Expression expr) {
      this.expression = expr;
      this.ref = ref;
   }
   
   public Expression getExpression() {
      return expression;
   }
   
   public Reference getReference() {
      return ref;
   }
   
   /*
   public static ComputedPort parse(NamespaceScope scope,String expr,String selectExpr) 
      throws XMLException
   {
      PortReference ref = PortReference.parse(scope,expr);
      return new ComputedPort(ref.getStepName(),ref.getPortName(),scope,selectExpr);
   }*/
}
